package cn.icatw.gulimall.order.feign;

import cn.icatw.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author icatw
 * @date 2022/3/25
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-cart")
public interface CartFeignService {

    /**
     * 获得当前用户购物车物品
     *
     * @return {@link List}<{@link OrderItemVo}>
     */
    @GetMapping("/currentUserCartItems")
    List<OrderItemVo> getCurrentUserCartItems();
}
